<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page language="java" import="com.xteam.ecsystem.utils.AppConfig"%>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

//获取商品品牌图片路径
String brandImgPath = AppConfig.getBrandImagePath();
//获取图片实际根目录
String realpath = AppConfig.getRealPath();
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>商品管理-商品品牌</title>
    <jsp:include page="../../include/base.jsp"></jsp:include>
	<jsp:include page="../../include/common.jsp"></jsp:include>
	<style type="text/css">
		.mini-tabs-bodys {border:0px;}
		#delBgbLogoBtn span{line-height:12px !important;font-size: 11px;}
	</style>
	<script type="text/javascript">
			var __brandImgPath = "<%=brandImgPath %>";
			//实际根目录
			var __realpath='<%=realpath%>';
			//虚拟访问目录
			var __virpath='<%=AppConfig.getVirtualPath()%>';
	</script>
  </head>
  <body style="margin:0 auto;padding:0 auto;">   
  	<form id="goodsBrandForm" method="post">
        <table style="width:100%;font-size:12px;padding-top:14px;" align="center" cellpadding="3">
			<tr>
				<td align="right" width="80">品牌名称：</td>
				<td>    
                     <input name="bgbName" class="mini-textbox" required="true" width="250"/>
                 </td>
			</tr>
			<tr>
				<td align="right">品牌网址：</td>
				<td>    
                     <input name="bgbUrl" class="mini-textbox" width="250"/>
                 </td>
			</tr>
			<tr>
				<td align="right">品牌描述：</td>
				<td>    
                     <input name="bgbDesc" class="mini-textarea" width="250" height="60"/>
                 </td>
			</tr>
			<tr>
				<td align="right">品牌排序：</td>
				<td>    
                     <input name="bgbOrder" class="mini-textbox" required="true" width="250"/>
                 </td>
			</tr>
			<tr>
				<td align="right">品牌图标：</td>
				<td>
					<input id="upload_bgbLogo" class="mini-fileupload" buttonText="浏览..."
			           	limitType="*.gif;*.jpg;*.png;*.bmp" uploadOnSelect="true" width="250px"
			           	flashUrl="<%=path %>/admin/resource/swfrpc/swfupload.swf" 
					    uploadUrl="<%=path %>/fileUploadContorller.do?uploadPath=<%=realpath+brandImgPath %>" 
					    onuploadsuccess="GoodsBrandFormHandler.showBgbLogo"/>
					<input class="mini-button" text="删除图标" id="delBgbLogoBtn" plain="false" 
					    onclick="GoodsBrandFormHandler.delBgbLogo" height="19" visible="false"/>
				</td>
			</tr>
			<tr>
				<td align="right">&nbsp;</td>
				<td>    
					<input class="mini-textbox" id="hidden_bgbLogo" name="bgbLogo" visible="false"/>
                    <div id="imgViewer" style="border:1px dashed #9DA0AA;width:250px;height:80px;"></div>
                 </td>
			</tr>
			<tr>
				<td align="right">品牌状态：</td>
				<td>    
                     <div id="bgbState" name="bgbState" class="mini-radiobuttonlist" 
		    		 	repeatItems="2" repeatLayout="table" repeatDirection="horizontal"  
		    		 	textField="text" valueField="value">
					</div> 
                 </td>
			</tr>
			<tr>
				<td colspan="2" align="center" style="height:50px;">
					<input class="mini-button" text="保存" iconCls="icon-save" plain="false" 
      					onclick="GoodsBrandFormHandler.save"/>&nbsp;&nbsp;
      				<input class="mini-button" text="关闭" iconCls="icon-cancel" plain="false" 
      					onclick="GoodsBrandFormHandler.closeMiniWin"/>
				</td>
			</tr>
		</table>
  	</form>
  </body>
  <script src="handler/GoodsBrandFormHandler.js" type="text/javascript"></script>
</html>
























